package com.hgshop.yudongyang.dao;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Update;

import com.hgshop.yudongyang.domain.Category;

public interface CategoryMapper {

	List<Category> getTree(int i);

	void addCategory(Category c);

	@Delete("delete from hg_category where id=#{id}")
	void delCategory(Category c);

	@Update("update hg_category set name=#{name},path=#{path} where id=#{id}")
	void updateCategory(Category c);

}
